// 账号相关的
export class AccountR {
  constructor(requestObj, basePath = '') {
    this.request = requestObj
    // 一级路径 + 二级路径
    this.second = `${basePath}`

    this.portal = 'portal'
    this.sys = 'sys'
    this.wx = 'api/wx'
  }

  // pc登录
  async login(data={}, more = {}) {
    return await this.request.post(`${this.second}${this.portal}/login`, data, more)
  }


  // 获取用户信息
  async getUserInfo(data={}, more = {}) {
    return await this.request.post(`${this.second}${this.sys}/user/info`, data, more)
  }

}


